#ifndef LIBEV_WRAPPER_H_
#define LIBEV_WRAPPER_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "evconnsvrd.h"

int32_t libev_init();

struct event_base* libev_init_base();

void libev_free_base(struct event_base*);

void* libev_malloc(size_t nbytes);

void* libev_realloc(void* ptr, size_t nbytes);

void libev_free(void* ptr);

void libev_log(int32_t severity, const char *msg);

void libev_fatal(int32_t err);

#ifdef __cplusplus
}
#endif

#endif // LIBEV_WRAPPER_H_

